package com.devshephard.nio.nettybasic.eventloop;

import io.netty.channel.DefaultEventLoop;
import io.netty.channel.DefaultEventLoopGroup;
import io.netty.util.concurrent.EventExecutor;
import lombok.extern.slf4j.Slf4j;

import java.util.Iterator;

@Slf4j
public class EventLoopDemo {
    public static void main(String[] args) {
        DefaultEventLoopGroup defaultEventLoopGroup = new DefaultEventLoopGroup(2);
        Iterator<EventExecutor> itor =  defaultEventLoopGroup.iterator();
        while (itor.hasNext()){
            log.info(String.valueOf(itor.next()));
        }
    }
}
